package com.jjy.admin.service.common.impl;

import com.jjy.admin.domain.TaskJob;
import com.jjy.admin.mapper.CommonMapper;
import com.jjy.admin.domain.Industry;
import com.jjy.admin.domain.JobArea;
import com.jjy.admin.mapper.TaskJobMapper;
import com.jjy.admin.service.common.CommonService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service
public class CommonServiceImpl implements CommonService {
    @Resource
    private CommonMapper commonMapper;
 @Resource
    private TaskJobMapper taskJobMapper;


    @Override
    public ArrayList<JobArea> getProvinces() {
        return  commonMapper.getProvinces();
    }

    @Override
    public ArrayList<JobArea> getCitys(String provinceId) {
        return  commonMapper.getCitys(provinceId);
    }

    @Override
    public ArrayList<Industry> getIndustry() {
        return  commonMapper.getIndustry();
    }

    @Override
    public int insertTaskJob(TaskJob taskJob) {
        return taskJobMapper.insert(taskJob);
    }

    @Override
    public ArrayList searchHotCity() {
        return commonMapper.searchHotCity();
    }
}
